package com.grf.kafka.java.serializer;

/**
 * @apiNote 用户对象
 * @author grf
 * @since 2024/10/24
 */
public class User {
    private long id;

    private int age;

    private int sex;

    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String toString(){
        return "User{id="+id+",name="+name+",sex="+sex+",age="+age+"}";
    }
}
